<link rel="stylesheet" type="text/css" href="BuildAndControlStyling.css">
<script language="php">
require("dbinfo.inc.php");
require("Formatting.php");

$username=$_POST['username'];
$password=$_POST['password'];
$team=$_POST['team'];
$mobile=$_POST['mobile'];
$email=$_POST['email'];
$timestamp=time();

Heading();

if($username != "" && $password!="" && $team!="" && $email!="")
{
	mysql_connect($host,$dbusername,$dbpassword);//when on a server replace with "www.webaddress.com" note the quotes!!!
	@mysql_select_db($database) or die("Unable to select database");//error control


$query = "INSERT INTO users VALUES ('','$username','$password','$team','$mobile','$email','$timestamp')";
echo 'Welcome to Build And Control <b>'.$username.'</b> !<br/>';
echo 'You are on team <b>'.$team.'</b><br/>';
echo 'Procceed to <a href="index.php">login</a> to start playing!<br/><br/>';
echo 'Your account details have been sent to: <b>'.$email.'</b><br/><br/>';

mysql_query($query);
mysql_close();
}

LinksBot();
</script>